package models.common;

import java.util.*;

import play.Logger;
import play.db.ebean.*;
import play.db.ebean.Model.Finder;
import play.data.validation.Constraints.*;
import play.data.format.*;

import javax.persistence.*;

import models.report.Product;

import com.avaje.ebean.Ebean;
import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.Query;
import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
public class Market extends Model{
	@Id
	public Integer marketKey;
	  
	public String name;
	
	public static Finder<Long,Market> find = new Finder(
		Long.class, Market.class
	);
	
	public static List<Market> getAll(){
		Query<Market> query = Ebean.find(Market.class);
		
		return query.findList();
	}
}
